{% extends "admin/base_site.html" %}
{% load i18n static %}

{% block title %}更改密码{% endblock %}

{% block breadcrumbs %}
<div class="breadcrumbs">
<a href="{% url 'admin:index' %}">首页</a>
&rsaquo; <a href="{% url 'admin:auth_user_changelist' %}">用户</a>
&rsaquo; <a href="{% url 'admin:auth_user_change' original.pk %}">{{ original|truncatewords:"18" }}</a>
&rsaquo; 更改密码
</div>
{% endblock %}

{% block content %}
<div id="content-main">
<form method="post">{% csrf_token %}
<div>
{% if form.errors %}
    <p class="errornote">
    {% if form.errors.items|length == 1 %}请修正下面的错误。{% else %}请修正下面的错误。{% endif %}
    </p>
{% endif %}


<p>请为用户 <strong>{{ original }}</strong> 输入新密码。</p>

<fieldset class="module aligned">
    <div class="form-row">
        {{ form.password1.errors }}
        {{ form.password1.label_tag }} {{ form.password1 }}
        {% if form.password1.help_text %}
        <div class="help">{{ form.password1.help_text|safe }}</div>
        {% endif %}
    </div>
    <div class="form-row">
        {{ form.password2.errors }}
        {{ form.password2.label_tag }} {{ form.password2 }}
        {% if form.password2.help_text %}
        <div class="help">{{ form.password2.help_text|safe }}</div>
        {% endif %}
    </div>
</fieldset>

<div class="submit-row">
    <input type="submit" value="更改密码" class="default" />
</div>

</div>
</form>
</div>
{% endblock %} 